const CreateRoleAclRequest = {
    rid: {
        type: "string",
        required: true,
        description: "角色id",
        format: /^[\w\-]{19}$/,
    },
    aid: {
        type: "string",
        required: true,
        description: "权限id",
        format: /^[\w\-]{19}$/,
    },
};

const QueryRoleAclRequest = {
    type: {
        type: "string",
        required: false,
        description: "权限类型，1：视图权限，2：接口权限",
        example: 1,
        format: /^[12]{1}$/,
    },
};

module.exports = {
    CreateRoleAclRequest,
    QueryRoleAclRequest,
};
